#delimit;
foreach i in 401k
401ksubs
admnrev
affairs
airfare
alcohol
apple
approval
athlet1
athlet2
attend
audit
barium
beauty
benefits
beveridge
big9salary
bwght
bwght2
campus
card
catholic
cement
census2000
ceosal1
ceosal2
charity
consump
corn
countymurders
cps78_85
cps91
crime1
crime2
crime3
crime4
discrim
driving
earns
econmath
elem94_95
engin
expendshares
ezanders
ezunem
fair
fertil1
fertil2
fertil3
fish
fringe
gpa1
gpa2
gpa3
happiness
hprice1
hprice2
hprice3
hseinv
htv
infmrt
injury
intdef
intqrt
inven
jtrain
jtrain2
jtrain3
jtrain98
kielmc
labsup
lawsch85
loanapp
lowbrth
mathpnl
meap00_01
meap01
meap93
meapsingle
minwage
mlb1
mroz
murder
nbasal
ncaa_rpi
nyse
okun
openness
pension
phillips
pntsprd
prison
prminwge
rdchem
rdtelec
recid
rental
return
saving
school93_98
sleep75
slp75_81
smoke
traffic1
traffic2
twoyear
volat
vote1
vote2
voucher
wage1
wage2
wagepan
wageprc
wine
oaxaca
airpassengers
airquality
anscombe
attenu
attitude
austres
beaver1
beaver2
bjsales
bod
cars
chickweight
chickwts
crimtab
discoveries
dnase
esoph
euro
eustockmarkets
faithful
formaldehyde
freeny
haireyecolor
harman23_cor
harman74_cor
indometh
infert
insectsprays
iris
islands
johnsonjohnson
lakehuron
lh
lifecyclesavings
loblolly
longley
lynx
morley
mtcars
nhtemp
nile
nottem
npk
occupationalstatus
orange
orchardsprays
plantgrowth
precip
presidents
pressure
puromycin
quakes
randu
rivers
rock
sleep
stackloss
sunspot_month
sunspot_year
sunspots
swiss
theoph
titanic
toothgrowth
treering
trees
ucbadmissions
ukdriverdeaths
ukgas
usaccdeaths
usarrests
usjudgeratings
uspersonalexpenditure
uspop
vadeaths
volcano
warpbreaks
women
worldphones
wwwusage
insurance
billboard
construction
diamonds
economics
faithfuld
fish_encounters
midwest
mpg
msleep
presidential
relig_income
seals
smiths
storms
txhousing
us_rent_income
mpdta
acs
ajr
bootdata
cigar
cigarwide
columbuscoord
columbusdb
georgia
georgia_shp
gsemfmmexample
hk
hrs
klingdata
mabeldecomp
mabelfmm
mabelunbalsmall
mcbs
mccall
meps2003qr
mepsambexp
mepsdocvis
mepsdocvisyoung
mepsemergroom
mepsmedexp
mepspresdrugs
mepssur
nhanes
nlsy
nswpsid
occfewcluster
ohiesmallrecode
psid
rdsenate
rhie
smoking
vlss
hhprice2
usstatewk {;
	local j = `j'+1;
	use "`i'", clear;
	frame new:set obs  `j';
	qui:describe, short;
	frame new:{;
		capture gen dataset = "`i'" in `j';
		capture gen nobs    = `r(N)' in `j';
		capture gen kvar    = `r(k)' in `j';
		capture replace dataset = "`i'" in `j';
		capture replace nobs    = `r(N)' in `j';
		capture replace kvar    = `r(k)' in `j';
	};
	
};

